home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Belgian Amiga Club - ADF Collection
/
BS1 part 26.zip
/
BS1 part 26
/
C for beginners.adf
/
source
/
window1.c
< prev
next >
Wrap
C/C++ Source or Header
|
1978-01-17
|
380b
|
23 lines
/*window1.c 23.7.1 */
#define c *character
#define ESC 27
main()
{
int dummy = 0, num, handle;
char character[81];
handle = open("CON:0/0/200/50/My Program", 0, dummy);
printf("Handle %d open\n",handle);
if(handle != -1)
{
do
{
num = read(handle, character, 1);
printf("Character >%c< Code %d\n", c, c);
} while (c !=ESC);
close(handle);
}
}